<!--
 * @Descripttion: 
 * @Author: jiansheng
 * @Date: 2021-12-02 15:09:01
-->
<template>
  <div class="child2">
    <p @click="someEmit">child2 组件 ---- {{ prop2 }}</p>
  </div>
</template>
<script>
export default {
  props: ['prop2'],
  mounted() {
    console.log('child2 --- attrs', this.$attrs)
  },
  methods: {
    someEmit() {
      console.log('点击了 child2，已触发 someEmit 事件')
      this.$emit('changeChild2', 999999)
    }
  },
}
</script>